CXXFLAGS=-I.
LDFLAGS=-L/usr/lib

all: Mp3EncoderServiceI Client 

Mp3EncoderServiceI: LDLIBS=-lIce -lIceUtil -lIceBox -lmp3lame -lsndfile -lMp3EncoderServiceI
Mp3EncoderServiceI: Mp3EncoderServiceI.o Ripper.o Mp3EncoderFactoryI.o Mp3EncoderI.o
Mp3EncoderServiceI.o: Mp3EncoderServiceI.cpp Ripper.h Mp3EncoderFactoryI.h Mp3EncoderI.h

Client: LDLIBS=-lIce -lIceUtil -lIceGrid -lmp3lame -lsndfile
Client: Client.o Ripper.o Mp3EncoderFactoryI.o Mp3EncoderI.o
Client.o: Client.cpp Ripper.h Mp3EncoderFactoryI.h Mp3EncoderI.h

%.h %.cpp: %.ice
	slice2cpp -I/usr/share/slice $<

clean:
	rm -f *.o Mp3EncoderServiceI Client Ripper.h Ripper.cpp *~
